package com.springboot.dto;

public class DoctorUnreadMessage {
    private String logoLink;
    private Integer unreadNumber;

    public DoctorUnreadMessage() {
    }

    public DoctorUnreadMessage(String logoLink, Integer unreadNumber) {
        this.logoLink = logoLink;
        this.unreadNumber = unreadNumber;
    }


    public String getLogoLink() {
        return logoLink;
    }

    public void setLogoLink(String logoLink) {
        this.logoLink = logoLink;
    }

    public Integer getUnreadNumber() {
        return unreadNumber;
    }

    public void setUnreadNumber(Integer unreadNumber) {
        this.unreadNumber = unreadNumber;
    }

    //封装Json格式字符串
    @Override
    public String toString() {
        if(logoLink!=null)
        {
            logoLink = logoLink.replaceAll("", "");
        }
        return "{" +
                "\"logoLink\":\"" + logoLink + '\"' +
                ", \"unreadNumber\":\"" + unreadNumber + '\"' +
                '}';
    }
}
